package org.chen.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("background_resource")
public class BackgroundResource extends Model<BackgroundResource> {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    
    private String name;
    
    @TableField("file_type")
    private String fileType; // "image" 或 "video"
    
    private String url;
    
    @TableField("image_key")
    private String imageKey;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}